package com.aos.erp.manager.model.dsc;

import java.io.Serializable;
import java.util.Date;

import com.aos.erp.manager.enums.DscFileType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@Data
@ApiModel("合同文件")
@TableName("t_dsc_file")
public class DscFile implements Serializable {
	private static final long serialVersionUID = 1L;

    @ApiModelProperty(hidden = true, value = "合同文件记录ID")
    @TableId(value = "id", type = IdType.INPUT)
    private long id;

    @ApiModelProperty(hidden = true, value = "合同ID")
    @TableField("dsc_id")
    private long dscId;

    @ApiModelProperty(hidden = true, value = "合同文件ID")
    @TableField("dsc_file_id")
    private long dscFileId;

    @ApiModelProperty(hidden = true, value = "合同文件类型： picture为图片；other为其他文件。。。")
    @TableField("dsc_file_type")
    private DscFileType dscFileType = DscFileType.picture;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getDscId() {
        return dscId;
    }

    public void setDscId(long dscId) {
        this.dscId = dscId;
    }

    public long getDscFileId() {
        return dscFileId;
    }

    public void setDscFileId(long dscFileId) {
        this.dscFileId = dscFileId;
    }

    public DscFileType getDscFileType() {
        return dscFileType;
    }

    public String getDscFileTypeName() {
        return dscFileType.getDesc();
    }

    public void setDscFileType(DscFileType dscFileType) {
        this.dscFileType = dscFileType;
    }
}
